home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Fiszkowe programy do nauki / jMemorize 1.2.3 / jMemorize-1.2.3-setup.exe / jMemorize-1.2.3.exe / ant / site.xml < prev   
Extensible Markup Language  |  2006-11-25  |  6KB  |  124 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  4. <!-- iText, a JAVA - PDF library                                      -->
  5. <!-- $Id: site.xml,v 1.17 2006/11/25 13:28:07 blowagie Exp $         -->
  6. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  7.  
  8. <project name="iText.site" default="help" basedir=".">
  9.     
  10.     <property file=".ant.properties" />
  11.     
  12.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  13.     <!-- Help                                                             -->
  14.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  15.  
  16.     <target name="help" description="--> shows the help screen">
  17.         <echo>BUILDING THE iText SITE (site.xml)</echo>
  18.         <echo>ant javadoc: Building the API documentation</echo>
  19.         <echo>ant docs.tar.gz: Building and jarring the API documentation</echo>
  20.         <echo>ant lowagie.com: Building the lowagie.com part</echo>
  21.         <echo />
  22.     </target>
  23.  
  24.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  25.     <!-- Building the pages for lowagie.com                               -->
  26.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  27.  
  28.     <target name="lowagie.com" description="--> building the pages for lowagie.com">
  29.         <mkdir dir="${itext.lowagie}" />
  30.         <copy todir="${itext.lowagie}/images" overwrite="no">
  31.             <fileset dir="${itext.src.lowagie}/images" />
  32.         </copy>
  33.         <copy todir="${itext.lowagie}/ant" overwrite="no">
  34.             <fileset dir="${itext.src}/ant" />
  35.         </copy>
  36.         <copy file="${itext.src}/build.xml" todir="${itext.lowagie}" overwrite="no" />
  37.         <copy file="${itext.src.lowagie}/style.css" todir="${itext.lowagie}" overwrite="no" />
  38.         <copy file="${itext.src.lowagie}/MPL-1.1.txt" todir="${itext.lowagie}" overwrite="no" />
  39.         <copy file="${itext.src.lowagie}/lgpl.txt" todir="${itext.lowagie}" overwrite="no" />
  40.         <copy file="${itext.src.lowagie}/itext.jnlp" todir="${itext.lowagie}" overwrite="no" />
  41.         <xslt basedir="${itext.src.lowagie}" destdir="${itext.lowagie}" extension=".html" style="${itext.src.lowagie}/lowagie.xsl" includes="*.xml">
  42.             <param name="releasenumber" expression="${releasenumber}"/>
  43.             <param name="releasedate" expression="${releasedate}"/>
  44.             <param name="earlyaccessnumber" expression="${earlyaccessnumber}"/>
  45.             <param name="earlyaccesspaulo" expression="${earlyaccesspaulo}"/>
  46.             <param name="earlyaccesslowagie" expression="${earlyaccesslowagie}"/>
  47.         </xslt>
  48.     </target>
  49.  
  50.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  51.     <!-- Building the tutorial                                            -->
  52.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  53.  
  54.     <target name="tutorial" description="--> building the pages for lowagie.com">
  55.         <mkdir dir="${itext.tutorial}" />
  56.         <mkdir dir="${itext.tutorial}/images" />
  57.         <mkdir dir="${itext.examples}" />
  58.         <copy file="${itext.src.tutorial}/style.css" todir="${itext.tutorial}" overwrite="no" />
  59.         <copy todir="${itext.examples}" overwrite="yes">
  60.             <fileset dir="${itext.src.examples}">
  61.                 <include name="**/*.java"/>
  62.             </fileset>
  63.         </copy>
  64.         <copy todir="${itext.tutorial}/images" overwrite="yes">
  65.             <fileset dir="${itext.src.tutorial}/images">
  66.                 <include name="**/*.*"/>
  67.             </fileset>
  68.         </copy>
  69.         <java classname="com.lowagie.tools.BuildTutorial" dir="${basedir}/${itext.src.tutorial}" fork="true">
  70.             <arg value="${basedir}/${itext.src.tutorial}" />
  71.             <arg value="${basedir}/${itext.build}" />
  72.             <arg value="examples.xsl" />
  73.             <arg value="tutorial.xsl" />
  74.             <classpath>
  75.                 <pathelement location="${itext.bin}/iText.jar" />
  76.                 <pathelement location="${itext.bin}/crimson.jar" />
  77.             </classpath>
  78.         </java>
  79.     </target>
  80.  
  81.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  82.     <!-- Building and archiving the tutorial                              -->
  83.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  84.  
  85.     <target name="tutorial.tar.gz" depends="tutorial" description="--> makes a tar.gz-file with the complete javadoc documentation">
  86.         <ant antfile="${itext.tutorial}/build.xml" inheritAll="false" />
  87.         <mkdir dir="${itext.dist}" />
  88.         <mkdir dir="${itext.downloads}" />
  89.         <tar tarfile="${itext.downloads}/tutorial.tar" basedir="${itext.build}" includes="tutorial/**, examples/**" />
  90.         <gzip zipfile="${itext.dist}/tutorial.tar.gz" src="${itext.downloads}/tutorial.tar" />
  91.         <delete file="${itext.downloads}/tutorial.tar" />
  92.     </target>
  93.  
  94.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  95.     <!-- Building the API documentation                                   -->
  96.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  97.     
  98.     <target name="javadoc" description="--> generates the complete documentation with javadoc">
  99.         <mkdir dir="${itext.docs}" />
  100.         <javadoc
  101.             destdir="${itext.docs}"
  102.             author="true"
  103.             private="true">
  104.             <packageset dir="${itext.src}" defaultexcludes="yes">
  105.                   <include name="com/lowagie/**" />
  106.             </packageset>
  107.             <link href="http://java.sun.com/j2se/1.3/docs/api/" />
  108.             <header><a href="http://itext.ugent.be/itext-in-action/" target="_blank"><img src="http://itext.ugent.be/img/lowagie_3d.jpg" border="0" /></a></header>
  109.         </javadoc>
  110.     </target>
  111.  
  112.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  113.     <!-- Building and archiving the API documentation                     -->
  114.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  115.  
  116.     <target name="docs.tar.gz" depends="javadoc" description="--> makes a tar.gz-file with the complete javadoc documentation">
  117.         <mkdir dir="${itext.dist}" />
  118.         <mkdir dir="${itext.downloads}" />
  119.         <tar tarfile="${itext.downloads}/docs.tar" basedir="${itext.docs}" />
  120.         <gzip zipfile="${itext.dist}/docs.tar.gz" src="${itext.downloads}/docs.tar" />
  121.         <delete file="${itext.downloads}/docs.tar" />
  122.     </target>
  123.  
  124. </project>